package com.tiger.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Process text string.
 * 
 * @author andy
 */

public class Text {

	private static String regEx = "[`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？]";  
	private static Pattern p = Pattern.compile(regEx);     
    
    
	public static String replaceSpecial(String text, String replace) {
		if(text==null || "".equals(text)){
			return "";
		}
		Matcher m = p.matcher(text);     
		return m.replaceAll(replace);
    } 

}
